package cn.myjerry.thread.pro;

public class Player implements Runnable {
	Movie m;

	public Player() {
		super();
	}

	public Player(Movie m) {
		super();
		this.m = m;
	}

	@Override
	public void run() {
		for(int i=0;i<20;i++) {
			if(0 == i%2) {
				m.play("一号");
			} else {
				m.play("二号");
			}
		}
	}
}
